<template>
  <!-- 顶部通栏布局 -->
  <AppTopnav/>
  <AppHeader/>
  <!-- 吸顶头部 -->
  <AppHeaderSticky />
  <div class="app-body">
    <!-- 二级路由 -->
    <router-view></router-view>
  </div>
  <AppFooter/>
</template>

<script>
import AppTopnav from '@/components/app-topnav.vue'
import AppHeader from '@/components/app-header.vue'
import AppFooter from '@/components/app-footer.vue'
import AppHeaderSticky from '@/components/app-header-sticky.vue'
import { useStore } from 'vuex'
export default {
  name: 'tizi-layout',
  components:{AppTopnav, AppHeader, AppFooter, AppHeaderSticky},
  // 获取下分类数据
    setup () {
      const store = useStore()
      store.dispatch('category/getList')
  }
}
</script>

<style scoped lang='less'>
.app-body {
  min-height: 600px;
}
</style>